define(['services/services'], function (services) {
    'use strict';
    services.factory('utilService', [function() {
        return {
            getParams:function(parm){
                var paramsUrl = "";
                for(var items in parm){
                    paramsUrl +=items+"="+encodeURIComponent(parm[items])+"&"
                }
                paramsUrl=paramsUrl.substr(0,paramsUrl.length-1);
                return paramsUrl;
            }
        };
    }]);

});